home *** CD-ROM | disk | FTP | other *** search
/ Virtual Reality Zone / VRZONE.ISO / mac / SIT / lw1094.sit / LiveWire Oct '94 ƒ / LiveWire • Oct '94 / stack_-1.xml < prev    next >
Extensible Markup Language  |  1994-10-04  |  7KB  |  40 lines

  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <!DOCTYPE stack PUBLIC "-//Apple, Inc.//DTD stack V 2.0//EN" "" >
  3. <stack>
  4.     <name>in</name>
  5.     <id>-1</id>
  6.     <cardCount>18</cardCount>
  7.     <cardID>7916</cardID>
  8.     <listID>2274</listID>
  9.     <cantModify><false /></cantModify>
  10.     <cantDelete><false /></cantDelete>
  11.     <cantAbort><false /></cantAbort>
  12.     <cardSize>
  13.         <width>640</width>
  14.         <height>400</height>
  15.     </cardSize>
  16.     <script>on cHCinstall-- Check for correct environmentset cursor to busy--if checkEnviron() is not "OK" thengo HomegetHomeInfoexit to HyperCardend ifset cursor to busy--repeat until the lockScreen is falseunlock screenend repeat--end cHCinstallfunction checkEnviron-- The heapspace requirements may vary depending on your stackput MaxDepth() into TheDepthif TheDepth < 4 then errBitDepthif (TheDepth = 1) ¬¨and (the heapSpace < 2600) then errMemory TheDepth,"1100K"else if (TheDepth = 2) ¬¨and (the heapSpace < 117200) then errMemory TheDepth,"1200K"else if (TheDepth = 4) ¬¨and (the heapSpace < 205000) then errMemory TheDepth,"1250K"else if (TheDepth = 8) ¬¨and (the heapSpace < 384000) then errMemory TheDepth,"1300K"else if (TheDepth = 16) ¬¨and (the heapSpace < 721000) then errMemory TheDepth,"2400K"else if (TheDepth ‚â• 24) ¬¨and (the heapSpace < 1421000) then errMemory TheDepth,"3000K"else if stackActivate() is not empty thenerrColorreturn "OK"else return "OK"end checkEnvironon errMemory TheDepth,PartitionSize-- The PartitionSize required may vary depending on your stackput lastItem(":",the long name of HyperCard) into TheHyperCardanswer "Not enough memory to run" && "‚Äú" & short name of this stack & "‚Äù" ¬¨&& "in" && TheDepth & "bit mode. The current memory size of" && ¬¨TheHyperCard && "should be at least" && PartitionSize & "."end errMemoryfunction lastItem TheDelimiter,String-- given the delimiter <TheDelimiter>, return the portion of <String> that-- follows the LAST occurance of <TheDelimiter>if TheDelimiter is in Stringthen put lastItem(TheDelimiter,char offset(TheDelimiter,String) + 1 to length(String) of String) into Stringreturn Stringend lastItemon errBitDepthanswer "This stack requires a color system set to at least 16 colors" && ¬¨"(4 bit-depth) to display color." --‚àÜend errBitDepthon colorizeHCglobal gOKToColorizeif (gOKToColorize is empty) then pass colorizeHCend colorizeHCfunction stackActivateglobal gOKToColorize--put empty into gOKToColorize--colorizeHC "assignToFront"if the result is not empty thenput the result into gOKToColorizereturn gOKToColorizeend ifend stackActivateon errColorglobal gOKToColorizeanswer "Warning: The environment this stack is currently running in is not" && ¬¨"able to support color." & return & "Reason:" && gOKToColorizeend errColoron cHCdispose-- closing the stack, get rid of the Colorize stufflock screenColorizeHC "Dispose"if the result is not empty then answer the resultunlock screen -- force a screen updateend cHCdisposefunction wrongStackput the value of word 2 of the long name of me into TheStackNamereturn (TheStackName is not line 1 of the stacks)end wrongStackon modTimeglobal theMODget PlayMOD(stopMOD, true)put PlayMOD(playMODres,,theMOD) into errMsgif errMsg is not empty thenanswer errMsgend ifend modTimeon lwSetupglobal theMODput "Fusion" into theMODend lwSetupon openStackif wrongStack() then pass openStackcHCinstallhide menubarlwSetuprepeat until the lockScreen is falseunlock screenend repeatend openStackon closeStackif wrongStack() then pass closeStackcHCdisposeget PlayMOD(stopMOD, true)unlock screenend closeStackon resumeif wrongStack() then pass resumecHCinstallgo cd "logo"lock screenunlock screenend resumeon suspendif wrongStack() then pass suspendcHCdisposeget PlayMOD(stopMOD, true)end suspendon resumeStackif wrongStack() then pass resumeStackcHCinstallgo cd "logo"lock screenunlock screenend resumeStackon suspendStackif wrongStack() then pass suspendStackcHCdisposeunlock screenpass suspendStackend suspendStack-- Use the following script as a guide for your own scripts:-- on mouseUp-- put myAnimation into whichAnimation-- put "" into startID        -- default 128-- put "" into endID          -- default 127 + number of PICT-- put "" into xLoc           -- default 0-- put "" into yLoc           -- default 0-- put "" into framesPerSe    -- default 60-- put "3" into times-- put "" into preLoad        -- default TRUE-- playPICS whichAnimation,startID,endID,¬¨-- xLoc,yLoc,framesPerSec,times,preLoad-- end mouseUp-- playPICS "resource",,,-50,-50,10,5,true-- Textoid "CyberNote" ,"Cd Fld 1",RinaldoidZoom,"white,Blue"</script>
  17.     <background id="2570" file="background_2570.xml" name="Main" />
  18.     <background id="5224" file="background_5224.xml" name="Wide" />
  19.     <background id="5628" file="background_5628.xml" name="" />
  20.     <background id="9808" file="background_9808.xml" name="Contents" />
  21.     <card id="7916" file="card_7916.xml" marked="false" name="Logo" owner="5628" />
  22.     <card id="10351" file="card_10351.xml" marked="false" name="Contents" owner="9808" />
  23.     <card id="10183" file="card_10183.xml" marked="false" name="editor" owner="2570" />
  24.     <card id="3839" file="card_3839.xml" marked="false" name="magic" owner="2570" />
  25.     <card id="3872" file="card_3872.xml" marked="false" name="comics" owner="2570" />
  26.     <card id="4300" file="card_4300.xml" marked="false" name="sf" owner="2570" />
  27.     <card id="7495" file="card_7495.xml" marked="false" name="gamer" owner="2570" />
  28.     <card id="4636" file="card_4636.xml" marked="false" name="haunt" owner="2570" />
  29.     <card id="9282" file="card_9282.xml" marked="false" name="music" owner="2570" />
  30.     <card id="8360" file="card_8360.xml" marked="false" name="artist" owner="2570" />
  31.     <card id="2448" file="card_2448.xml" marked="false" name="ibm" owner="2570" />
  32.     <card id="6367" file="card_6367.xml" marked="false" name="mac" owner="2570" />
  33.     <card id="6604" file="card_6604.xml" marked="false" name="amiga" owner="2570" />
  34.     <card id="6893" file="card_6893.xml" marked="false" name="atari" owner="2570" />
  35.     <card id="7154" file="card_7154.xml" marked="false" name="apple" owner="2570" />
  36.     <card id="7220" file="card_7220.xml" marked="false" name="net" owner="5224" />
  37.     <card id="4492" file="card_4492.xml" marked="false" name="events" owner="5224" />
  38.     <card id="7962" file="card_7962.xml" marked="false" name="Join" owner="5224" />
  39. </stack>
  40.